package cn.itsource.basic.basic.query;

import io.swagger.annotations.ApiParam;
import lombok.Data;

@Data
public class BaseQuery {
    //当前页
    @ApiParam(name="当前页数",required = true)
    private Integer currentPage = 1;
    //每页条数
    @ApiParam(name="当前页展示多少条数据",required = true)
    private Integer pageSize = 10;

    public Integer getPage(){
        return (this.currentPage - 1) * this.pageSize;
    }

    private String keyword;

}

